package com.api.phm.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.api.common.core.domain.BaseEntity;
//import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

//@Data
@Getter
@Setter
public class FaultLogVo extends BaseEntity {
    private String faultId;
    private Long plcId;
    private Long lineId;
    private Long robotId;
    private Long elementId;
    private String datCol;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    private String faultLevel;
    private String faultCode;
    private String faultStatus;
    private String faultMessage;
    private String triggerValue;
    private String readMark;
    /**
     * 选择第N页
     */
    private int pageNum;
    /**
     * 每页显示量
     */
    private int pageSize;

    private String appLang;

    public void initControl(String username, String appLang) {
        this.appLang = appLang;
    }
}
